-
Home
-
WPBase Cache
-
5.5.5 (latest)
-
Code
-
Classes
- SentinelReplication
Total Complexity |
88 |
Dependencies |
14 |
Dependents |
1 |
Total lines |
691 |
Lines of code |
313 |
Logical lines of code |
172 |
Comment lines |
215 |
Methods |
36 |
Properties |
12 |
Methods 36
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
switchTo() |
S |
57 |
7 |
16 |
getSlaves() |
S |
54 |
6 |
21 |
getConnectionInternal() |
S |
58 |
6 |
17 |
createSentinelConnection() |
S |
58 |
5 |
17 |
querySentinelForSlaves() |
S |
54 |
4 |
21 |
getMaster() |
S |
56 |
4 |
20 |
updateSentinels() |
S |
55 |
3 |
21 |
retryCommandOnFailure() |
S |
57 |
3 |
18 |
querySentinelForMaster() |
S |
58 |
3 |
16 |
getConnection() |
S |
66 |
4 |
8 |
remove() |
S |
61 |
3 |
13 |
connect() |
S |
68 |
3 |
8 |
disconnect() |
S |
68 |
3 |
8 |
add() |
S |
65 |
3 |
9 |
getSentinelConnection() |
S |
64 |
3 |
10 |
getConnectionById() |
S |
66 |
3 |
9 |
isConnected() |
S |
79 |
2 |
3 |
assertConnectionRole() |
S |
67 |
2 |
7 |
__construct() |
S |
70 |
2 |
6 |
pickSlave() |
S |
72 |
2 |
5 |
handleSentinelErrorResponse() |
S |
68 |
2 |
7 |
setRetryWait() |
S |
80 |
1 |
3 |
getReplicationStrategy() |
S |
82 |
1 |
3 |
executeCommand() |
S |
79 |
1 |
3 |
readResponse() |
S |
79 |
1 |
3 |
writeRequest() |
S |
80 |
1 |
3 |
setRetryLimit() |
S |
80 |
1 |
3 |
reset() |
S |
81 |
1 |
3 |
setUpdateSentinels() |
S |
80 |
1 |
3 |
setSentinelTimeout() |
S |
80 |
1 |
3 |
switchToSlave() |
S |
77 |
1 |
4 |
switchToMaster() |
S |
81 |
1 |
3 |
wipeServerList() |
S |
74 |
1 |
5 |
querySentinel() |
S |
73 |
1 |
6 |
getCurrent() |
S |
82 |
1 |
3 |
__sleep() |
S |
73 |
1 |
5 |